package com.mxj.indexer.config;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * @author yuisama
 * @date 2023/04/17 15:37
 **/
@Configuration
public class AppConfig {
//引入了jackson库，是为了将索引序列化成JSON，方便保存成两个文件
    @Bean
    public ObjectMapper objectMapper(){
    ObjectMapper objectMapper = new ObjectMapper();
        return objectMapper;
    }
}

